<template>
	<view class="temp">
		<image class="bg" :src="config.bg.info" mode="aspectFill"></image>
		<view class="main">
			<view class="pages animated fadeInUp" v-if="show==0">
				<image :src="config.image0.info" mode="aspectFit"></image>
				<view class="text animated fadeInUp">
					<view style="text-align: center; margin-bottom: 20rpx;font-size: 38rpx;">
						{{config.text0.info}}
					</view>
					<view>
						{{config.text1.info}}
					</view>
				</view>
			</view>
			<view class="pages animated fadeInUp" v-if="show==1">
				<image :src="config.image1.info" mode="aspectFit"></image>
				<view class="text animated fadeInUp">
					<view style="text-align: center; margin-bottom: 20rpx;font-size: 38rpx;">
						{{config.text2.info}}
					</view>
					<view>
						{{config.text3.info}}
					</view>
				</view>
			</view>
			<view class="pages animated fadeInUp" v-if="show==2">
				<image :src="config.image2.info" mode="aspectFit"></image>
				<view class="text animated fadeInUp">
					<view style="text-align: center; margin-bottom: 20rpx;font-size: 38rpx;">
						{{config.text4.info}}
					</view>
					<view>
						{{config.text5.info}}
					</view>
				</view>
			</view>
			<view class="pages animated fadeInUp" v-if="show==3">
				<image :src="config.image3.info" mode="aspectFit"></image>
				<view class="text animated fadeInUp">
					<view style="text-align: center; margin-bottom: 20rpx;font-size: 38rpx;">
						{{config.text6.info}}
					</view>
					<view>
						{{config.text7.info}}
					</view>
				</view>
			</view>
			<view class="arrow" @click="button">
				<u-icon name="arrow-up"></u-icon>
				<view>点击这里</view>
			</view>
		</view>
		<look-prompt></look-prompt>
	</view>
</template>

<script>
	import {
		config
	} from "@/common/index.js"
	export default {
		// propos: ['config'],
		data() {
			return {
				config: config,
				show: 0
			}
		},
		methods: {
			button() {
				this.show++
				if(this.show>=4)return this.$u.toast('没有更多了')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.temp {
		width: 750rpx;
		height: 100vh;
		overflow: hidden;
		background-color: rgba($color: #000000, $alpha: 0.1);
		
		.main {
			width: 750rpx;

			.pages {
				margin-top: 100rpx;
				position: fixed;
				top: 0;
				
				image {
					width: 750rpx;
				}

				.text {
					text-align: justify;
					margin: 20rpx;
					padding: 20rpx;
					color: #FFFFFF;
					border-radius: 16rpx;
					background-color: rgba($color: red, $alpha: 0.2);
				}
			}

			.arrow {
				width: 750rpx;
				text-align: center;
				color: #FFFFFF;
				position: fixed;
				bottom: 20rpx;
			}
		}

		.bg {
			position: absolute;
			top: 0px;
			left: 0px;
			width: 100%;
			height: 100%;
			z-index: -100;
		}
	}
</style>
